﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace BLL
{
    public class CommonService
    {
        /// <summary>
        /// 获取分页数据
        /// </summary>
        /// <param name="SQLString">数据源SQL</param>
        /// <param name="PKey">主键</param>
        /// <param name="OrderName">排序字段</param>
        /// <param name="PageSize">每页数量</param>
        /// <param name="CurrentIndex">当前页码</param>
        /// <param name="TotalPage">总页码</param>
        /// <returns></returns>
        public static DataTable GetDataByPage(string SQLString, string PKey, string OrderName, int PageSize, int CurrentIndex, out int TotalPage)
        {
            return CommonBase.GetDataByPage(SQLString, PKey, OrderName, PageSize, CurrentIndex, out TotalPage);
        }
    }
}
